<!DOCTYPE html>
<html>
<head>
    {if session('user_id')}
    <title>{$title}--拼多多极速版</title>
    {else}
    <title>{$title}--后台管理系统</title>
    {/if}
    <link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css">
    {load href="/static/layui/css/bootstrap.min.css" /}
    {load href="/static/layui/css/bootstrap.css" /}
    {load href="/static/layui/bootstrap.min.js" /}
    {load href="/static/layui/jquery-3.6.0.min.js" /}
    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <style type="text/css">
        .header{width:100%;height: 50px;line-height: 50px;background: #2e6da4;color:#ffffff;}
        .title{margin-left: 20px;font-size: 20px;}
        .userinfo{float: right;margin-right: 10px;}
        .userinfo a{color:#ffffff;}
        .menu{width: 200px;background:#333744;position:absolute;}
        .main{position: absolute;left:200px;right:0px;}

        .layui-collapse{border: none;}
        .layui-colla-item{border-top:none;}
        .layui-colla-title{background:#42485b;color:#ffffff;}
        .layui-colla-content{border-top:none;padding:0px;}

        .content span{background: #009688;margin-left: 30px;padding: 10px;color:#ffffff;}
        .content div{border-bottom: solid 2px #009688;margin-top: 8px;}
        .content button{float: right;margin-top: -5px;}
    </style>

</head>
<body>
<div class="header">
    {if session('user_id')}
    <span class="title"><span style="font-size: 20px;">{$title}</span>--拼多多极速版</span>
    {else}
    <span class="title"><span style="font-size: 20px;">{$title}</span>--后台管理系统</span>
    {/if}

    {if session('user_id')}
        <span class="userinfo">{:session('user_name')}&nbsp&nbsp&nbsp<span><a href="{:url('user/loginOut')}">退出</a></span></span>
    {else/}
    <span class="userinfo"><a href="index.php/user/login">登录</a></span>
    <span class="userinfo"><a href="index.php/user/register">注册</a></span>
    {/if}
</div>